﻿using System;
using System.Data.Entity;

namespace W2R.Core.Models.DataAccess
{
    public interface IUnitOfWork : IDisposable
    {
        /// <summary>
        /// Performs the commit operation
        /// </summary>
        void Commit();

        /// <summary>
        /// Returns the Context for Database operations
        /// </summary>
        DbContext Context { get; } //TODO : acoupled to EntityFramework :S
    }
}
